package com.cszjzx.member.dao;

import java.io.IOException;
import java.sql.SQLException;
import java.util.List;

import com.cszjzx.member.po.TempleMember;

public interface TempleMemberDAO {
	public void add(TempleMember templeMember) throws SQLException;
	public void addList(List<TempleMember> templeMembers);
	/**
	 * 
	 * @param templeMember
	 * @throws IOException 
	 * @throws SQLException 
	 * @throws ClassNotFoundException 
	 */
	public void update(List<TempleMember> templeMembers) throws SQLException, IOException, ClassNotFoundException;
	
	public void  update(TempleMember templeMember) throws SQLException;
	/**
	 * 根据操作审核状态查询零时数据相关信息
	 * @param checkcondition 
	 * 0查询所有的
	 * 1：待审核
	 * 2：审核通过
	 * 3：审核不通过
	 * @return
	 * @throws IOException 
	 * @throws SQLException 
	 * @throws ClassNotFoundException 
	 */
	public List<TempleMember> findByCheckCondition(int checkcondition) throws ClassNotFoundException, SQLException, IOException;
	
	/**
	 * 管理员查询操作审核
	 * @param checkcondition
	 * @return
	 * @throws ClassNotFoundException
	 * @throws SQLException
	 * @throws IOException
	 */
	public List<TempleMember> findByCheckConditionAndMasterid(int masterid,int checkcondition) throws ClassNotFoundException, SQLException, IOException;
	
	/**
	 * 根据身份证号找操作
	 * @param idcard
	 * @return
	 * @throws ClassNotFoundException
	 * @throws SQLException
	 * @throws IOException
	 */
	public TempleMember findByIdcard(String idcard) throws ClassNotFoundException, SQLException, IOException;
}
